<?php
namespace Home\Controller;
/**
 * author      : lis
 * creatTime   : 2015-12-29 15:03
 * email       : 407505297@qq.com
 * description :
 */
class IndexController{
    public function index(){
        echo 'hello world in IndexController';
    }

    public function test(){
        echo 'hello 360';
    }

    public function getVersion(){
        $versionList = \Home\Service\IndexService::getVersion();
        echo 'PHP版本：' . $versionList['php_version'].'。Mysql版本：' . $versionList['mysql_version'];
    }

    public function getTables(){
        $tables = \Home\Service\IndexService::getTables();
        var_dump($tables);
    }

    public function getFinds() {
        $m = D('Home/Model/IndexModel');
        var_dump($m);exit;
        $model = new \Home\Model\IndexModel();
        $rs = $model->getFind();
        var_dump($rs);
    }
}